* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 12px;
}

.container {
    width: 100%;
    max-width: 980px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
}

.form-box {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    padding: 30px 24px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Deferral confirmation checkbox */
.deferral-confirm {
    margin-top: 16px;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    color: #475569;
    margin-top: 0;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #cc0000;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Deferral Criteria Box - styled matching images */
.deferral-box {
    background: linear-gradient(145deg, #b80f38 0%, #8c0929 100%);
    width: 100%;
    max-width: 480px;
    padding: 26px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(184, 15, 56, 0.25);
    box-sizing: border-box;
    color: #ffffff;
}

.deferral-header {
    text-align: center;
    margin-bottom: 16px;
}

.deferral-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.deferral-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* Radio button eligibility selection box */
.eligibility-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.radio-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.radio-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.radio-card input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-card.warning {
    border-color: rgba(255, 200, 200, 0.4);
}

.deferral-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.deferral-list::-webkit-scrollbar {
    width: 6px;
}
.deferral-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.deferral-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.deferral-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.deferral-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.deferral-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.deferral-check-input {
    width: 20px;
    height: 20px;
    accent-color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.deferral-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deferral-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.icon-box {
    background: #ffe5e5;
    color: red;
    font-size: 30px;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

h2 {
    margin-bottom: 5px;
    color: #1e293b;
}

.subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

form {
    text-align: left;
}

label {
    font-size: 14px;
    margin-top: 12px;
    display: block;
    font-weight: 600;
    color: #334155;
}

input, select {
    width: 100%;
    padding: 11px;
    margin-top: 5px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    outline: none;
    font-size: 14px;
    box-sizing: border-radius;
}

input:focus, select:focus {
    border-color: #cc0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.hint {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 5px;
}

.row {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.col {
    flex: 1;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 13px;
    background: linear-gradient(to right, #e60000, #cc0000);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.2);
}

button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .form-box, .deferral-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .row {
        flex-direction: column;
        gap: 0;
    }
    .form-box, .deferral-box {
        padding: 24px 16px;
    }
}
